package com.top.mall.main.order

import android.app.Activity
import android.content.Intent
import com.module.lemlin.owner.OwnerViewModeActivity
import com.top.mall.R
import com.top.mall.jetpack.vm.OrderViewModel
import kotlinx.android.synthetic.main.activity_order_invoice.*
import kotlinx.android.synthetic.main.activity_order_invoice.imageViewBack

class OrderInvoiceActivity : OwnerViewModeActivity<OrderViewModel>() {

    companion object {
        fun open(activity: Activity) {
            val intent = Intent(activity, OrderInvoiceActivity::class.java)
            activity.startActivity(intent)
        }
    }


    override fun viewModel(): OrderViewModel {
        return createViewModel()
    }

    override val layoutResId: Int
        get() = R.layout.activity_order_invoice

    override fun stateBar(): StatusBar {
        return StatusBar(view = flOrderInvoiceBar)
    }

    override fun initView() {

        imageViewBack.setOnClickListener { finish() }
    }

    override fun initData() {

    }
}